       <div class="RightColumn">
            <div class="P10">
                <h2 class="Title01 P10 BorderBot01">Select subscribers</h2>
                <div class="P10">
                    <p class="FS12 P10Bot">
                        You can choose all or selected subscribers to send newsletter.
                    </p>

                    <div class="Container BorderBot02">
					    <div class="Picture1">
						    <ul class="CounterList">                           
                                &nbsp;
                            </ul>
					    </div>				    
				    </div>
<form action="<?php echo base_url().index_page(); ?>/adminpage/cpanel/action_sendmailtemplate/" method="post" enctype="multipart/form-data" name="adminForm" id="adminForm" autocomplete="off">
                    <table cellpadding="0" cellspacing="0" border="0" class="Table01">
                        <colgroup>
                            <col width="20%" />
                            <col width="40%" />
                            <col width="20%" />
                            <col width="20%" />
                        </colgroup>
                        <tr>
                            <td>name</td>
                            <td>email</td>
                            <td>date</td>
                            <td><span style="cursor:pointer" id="allsts">check all</span> / <span style="cursor:pointer"  id="nosts">uncheck all</span></td>
                        </tr>
                 <?php 
				 $i=0;
				foreach($banners as $item)
				{
					if($i%2!=0)
					{
				?>
                        <tr>
                            <td><p><?php echo $item['name']; ?></p></td>
                            <td><p><?php echo $item['email']; ?></p></td>
                            <td><p><?php echo my_int_date($item['date']); ?></p></td>
                            <td><input type="checkbox" value="<?php echo $item['id']; ?>" class="status" name="check[]" id="check<?php echo $item['id']; ?>" /></td>
                        </tr>
                 <?php 
					}
					else
					{
				?>
                        <tr>
                            <td class="Background01"><p><?php echo $item['name']; ?></p></td>
                            <td class="Background01"><p><?php echo $item['email']; ?></p></td>
                            <td class="Background01"><p><?php echo my_int_date($item['date']); ?></p></td>
                            <td class="Background01"><input type="checkbox" value="<?php echo $item['id']; ?>" class="status"  name="check[]" id="check<?php echo $item['id']; ?>" /></td>
                        </tr>
				<?php 
					}
				$i++;
				}
				?>
                    </table>
                    <div class="Container BorderBot02">
					    <div class="Picture1">
						    <ul class="CounterList">                           
                                &nbsp;
                            </ul>
					    </div>				    
				    </div>
                    <p class="W95">
                    <input type="hidden" name="currentid" value="<?php echo $id; ?>" />
                        <div style="width:220px;float:left"><a style="cursor:pointer" onclick="javascript: document.forms[0].submit();"  class="Button01" title="Save">SEND NEWSLETTER OUT</a></div>
                        
                        <div style="width:20px;float:left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div><div style="width:100px;float:left"><a  href="<?php echo base_url().index_page(); ?>/adminpage/cpanel/mailtemplate" class="Button01" title="Save">CANCEL</a></div>
                    </p>
					<p class="W95">&nbsp;</p>
</form>

                </div>
            </div>
       </div>

       
<script>
jQuery(document).ready(function(){
	jQuery("#subscribers").addClass('current');
	
	$("#allsts").click(function() {
	$(".status").attr('checked', true);
	});
	$("#nosts").click(function() {
	$(".status").attr('checked', false);
	});
});
</script>